package model

import (
	"gorm.io/gorm"
	"time"
)

type Pinlun struct {
	Id        int            `gorm:"column:id;type:int(20) UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    int            `gorm:"column:user_id;type:int(20);not null;" json:"user_id"`
	PinlunId  int            `gorm:"column:pinlun_id;type:int(20);not null;" json:"pinlun_id"`
	FandId    int            `gorm:"column:fand_id;type:int(20);not null;" json:"fand_id"`
	Content   string         `gorm:"column:content;type:varchar(255);not null;" json:"content"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (Pinlun) TableName() string {
	return "pinlun"
}
